package com.nnnu.wsnackshop.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Data;

import java.util.Set;

import static io.swagger.v3.oas.annotations.media.Schema.*;

@Data
@Schema(description = "分配权限dto")
public class AssignPermissionDTO {
    @NotNull
    @Schema(description = "角色 ID", requiredMode = RequiredMode.REQUIRED, example = "2")
    private Long roleId;


    @Schema(description = "要分配的权限 ID 列表", requiredMode = RequiredMode.REQUIRED, example = "[1,2,3]")
    private Set<@Positive Long> permissionIds;
}
